﻿var monster = {
    screens: {},
    settings: {
        rows: 8,
        cols: 8,
        baseScore: 100,
        numMonsterTypes: 7
    }
};

// wait until main document is loaded
window.addEventListener("load", function () {
    // start dynamic loading
    Modernizr.load([
        {
            // these files are always loaded
            load: [
                "scripts/sizzle.js",
                "scripts/dom.js",
                "scripts/game.js",
                "scripts/screens.splash.js",
                "scripts/screens.main-menu.js",
                "scripts/board.js"
            ],
            // called when all files have finished loading and executing
            complete: function () {
                // console.log("All files loaded!");
                monster.game.showScreen("splash-screen");
            }
        }
    ]);
}, false);